package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author quan
 * @date 2022-08-15 15:01
 */


@Data
@Accessors(chain = true)
@TableName(value = "t_dispatch_order")
public class TDispatchOrder {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 派单id
     */
    @TableField(value = "order_id")
    private Long orderId;

    /**
     * 派单用户id
     */
    @TableField(value = "m_id")
    private Long mId;

    /**
     * 派单内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 派单分类id
     */
    @TableField(value = "category_id")
    private Long categoryId;

    /**
     * 派单分类
     */
    @TableField(value = "category")
    private String category;

    /**
     * 派单价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 派单状态 0未接单 1已接单 2订单已完成 3订单完成 4订单取消
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 派单时间单位 -1一口价 0小时
     */
    @TableField(value = "unit")
    private Integer unit;

    /**
     * 订单接单用户id
     */
    @TableField(value = "service_id")
    private Long serviceId;

    /**
     * 开始间件
     */
    @TableField(value = "begin_time")
    private LocalDateTime beginTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    /**
     * 确认接单人时间
     */
    @TableField(value = "confirm_time")
    private LocalDateTime confirmTime;

    /**
     * 订单添加时间
     */
    @TableField(value = "add_time")
    private LocalDateTime addTime;

    /**
     * 城市代码
     */
    @TableField(value = "city_code")
    private String cityCode;

    /**
     * 订单支付状态
     */
    @TableField(value = "pay_status")
    private Integer payStatus;

    /**
     * 预支付流水id
     */
    @TableField(value = "pre_pay_id")
    private String prePayId;

    /**
     * 交易流水id
     */
    @TableField(value = "transaction_id")
    private String transactionId;

    /**
     * 派单时间要求
     */
    @TableField(value = "time_limit")
    private String timeLimit;

    /**
     * 派单支付方式 0余额 1wx 2zfb
     */
    @TableField(value = "pay_method")
    private Integer payMethod;

    /**
     * 派单地址信息
     */
    @TableField(value = "city_name")
    private String cityName;

    /**
     * 图片,分割
     */
    @TableField(value = "imgs")
    private String imgs;

    /**
     * 支付时间
     */
    @TableField(value = "pay_time")
    private LocalDateTime payTime;

    /**
     * 浏览量
     */
    @TableField(value = "visit_count")
    private Integer visitCount;

    /**
     * 排序
     */
    @TableField(value = "order_num")
    private Integer orderNum;

    /**
     * 定金支付流水
     */
    @TableField(value = "before_transaction_id")
    private String beforeTransactionId;

    /**
     * 定金支付方式
     */
    @TableField(value = "before_pay_method")
    private Integer beforePayMethod;

    /**
     * 订单支付状态
     */
    @TableField(value = "before_status")
    private Integer beforeStatus;

    /**
     * 定金金额
     */
    @TableField(value = "before_price")
    private BigDecimal beforePrice;

    /**
     * 订单时长
     */
    @TableField(value = "order_time")
    private String orderTime;
    /**
     * address
     */
    @TableField(value = "address")
    private String address;

    /**
     * 尾款
     */
    @TableField(value = "after_price")
    private BigDecimal afterPrice;

    @TableField(value = "audit")
    private Integer audit;
}